home *** CD-ROM | disk | FTP | other *** search
/ PC World 2008 September / PCWorld_2008-09_cd.bin / v cisle / sadanastroju / lightning-0.8-tb-win.xpi / chrome / calendar.jar / content / calendar / calendar-recurrence-dialog.xul < prev    next >
Extensible Markup Language  |  2007-11-15  |  8KB  |  213 lines

  1. <?xml version="1.0"?>
  2. <!-- -*- Mode: xml; indent-tabs-mode: nil; -*- -->
  3. <!--
  4.    - ***** BEGIN LICENSE BLOCK *****
  5.    - Version: MPL 1.1/GPL 2.0/LGPL 2.1
  6.    -
  7.    - The contents of this file are subject to the Mozilla Public License Version
  8.    - 1.1 (the "License"); you may not use this file except in compliance with
  9.    - the License. You may obtain a copy of the License at
  10.    - http://www.mozilla.org/MPL/
  11.    -
  12.    - Software distributed under the License is distributed on an "AS IS" basis,
  13.    - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  14.    - for the specific language governing rights and limitations under the
  15.    - License.
  16.    -
  17.    - The Original Code is calendar views.
  18.    -
  19.    - The Initial Developer of the Original Code is Oracle Corporation
  20.    - Portions created by the Initial Developer are Copyright (C) 2005
  21.    - the Initial Developer. All Rights Reserved.
  22.    -
  23.    - Contributor(s):
  24.    -   Stuart Parmenter <stuart.parmenter@oracle.com>
  25.    -   Simon Paquet <bugzilla@babylonsounds.com>
  26.    -
  27.    - Alternatively, the contents of this file may be used under the terms of
  28.    - either the GNU General Public License Version 2 or later (the "GPL"), or
  29.    - the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  30.    - in which case the provisions of the GPL or the LGPL are applicable instead
  31.    - of those above. If you wish to allow use of your version of this file only
  32.    - under the terms of either the GPL or the LGPL, and not to allow others to
  33.    - use your version of this file under the terms of the MPL, indicate your
  34.    - decision by deleting the provisions above and replace them with the notice
  35.    - and other provisions required by the GPL or the LGPL. If you do not delete
  36.    - the provisions above, a recipient may use your version of this file under
  37.    - the terms of any one of the MPL, the GPL or the LGPL.
  38.    -
  39.    - ***** END LICENSE BLOCK ***** -->
  40.  
  41. <?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>
  42. <?xml-stylesheet href="chrome://calendar/content/datetimepickers/datetimepickers.css" ?>
  43. <?xml-stylesheet href="chrome://calendar/content/calendar-event-dialog.css" type="text/css"?>
  44.  
  45. <!DOCTYPE dialog
  46. [
  47.     <!ENTITY % dtd1 SYSTEM "chrome://calendar/locale/global.dtd" > %dtd1;
  48.     <!ENTITY % calendar-recurrence-dialogDTD SYSTEM "chrome://calendar/locale/calendar-recurrence-dialog.dtd">
  49.     %calendar-recurrence-dialogDTD;
  50. ]>
  51.  
  52. <dialog
  53.   id="calendar-recurrence-dialog"
  54.   title="&newevent.recurrence.title;"
  55.   buttons="accept,cancel"
  56.   ondialogaccept="return onAccept();"
  57.   ondialogcancel="return onCancel();"
  58.   onload="onLoad()"
  59.   persist="screenX screenY"
  60.   xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  61.  
  62.   <script type="application/x-javascript" src="chrome://calendar/content/calendar-recurrence-dialog.js"/>
  63.   <script type="application/x-javascript" src="chrome://calendar/content/calendar-dialog-utils.js"/>
  64.   <script type="application/x-javascript" src="chrome://calendar/content/calUtils.js"/>
  65.  
  66.   <vbox>
  67.  
  68.     <grid flex="1">
  69.       <columns>
  70.         <column/>
  71.         <column flex="1"/>
  72.       </columns>
  73.  
  74.       <rows>
  75.         <row align="center">
  76.           <label value="&newevent.recurrence.occurs.label;" control="period-list"/>
  77.           <menulist id="period-list" oncommand="updateDeck();">
  78.             <menupopup>
  79.               <menuitem label="&newevent.recurrence.day.label;" value="0"/>
  80.               <menuitem label="&newevent.recurrence.week.label;" value="1"/>
  81.               <menuitem label="&newevent.recurrence.month.label;" value="2"/>
  82.               <menuitem label="&newevent.recurrence.year.label;" value="3"/>
  83.             </menupopup>
  84.           </menulist>
  85.         </row>
  86.  
  87.         <row>
  88.           <spacer/>
  89.           <label id="repeat-interval-warning"
  90.                  class="warning-text-class"
  91.                  value="&newevent.recurinterval.warning;"
  92.                  hidden="true"/>
  93.         </row>
  94.  
  95.         <row>
  96.           <spacer/>
  97.           <deck id="period-deck">
  98.  
  99.             <!-- Daily -->
  100.             <vbox>
  101.               <hbox align="center">
  102.                 <label value="&newevent.recurrence.every.label;" control="daily-days"/>
  103.                 <textbox id="daily-days" value="1" size="3" oninput="validateIntegerRange(event, 1, 0x7FFF); updateAccept();"/>
  104.                 <label value="&repeat.units.days;"/>
  105.                 <spacer flex="1"/>
  106.               </hbox>
  107.               <spacer flex="1"/>
  108.             </vbox>
  109.  
  110.             <!-- Weekly -->
  111.             <vbox>
  112.               <hbox align="center">
  113.                 <label value="&newevent.recurrence.every.label;" control="weekly-weeks"/>
  114.                 <textbox id="weekly-weeks" value="1" size="3" 
  115.                          oninput="validateIntegerRange(event, 1, 0x7FFF); updateAccept();"/>
  116.                 <label value="&newevent.recurrence.weeks.label;"/>
  117.               </hbox>
  118.               <hbox>
  119.                 <vbox>
  120.                   <checkbox id="weekly-mon" label="&day.2.name;" value="2"/>
  121.                   <checkbox id="weekly-tue" label="&day.3.name;" value="3"/>
  122.                   <checkbox id="weekly-wed" label="&day.4.name;" value="4"/>
  123.                   <checkbox id="weekly-thu" label="&day.5.name;" value="5"/>
  124.                 </vbox>
  125.                 <vbox>
  126.                   <checkbox id="weekly-fri" label="&day.6.name;" value="6"/>
  127.                   <checkbox id="weekly-sat" label="&day.7.name;" value="7"/>
  128.                   <checkbox id="weekly-sun" label="&day.1.name;" value="1"/>
  129.                 </vbox>
  130.               </hbox>
  131.             </vbox>
  132.  
  133.             <!-- Monthly -->
  134.             <vbox>
  135.               <hbox align="center">
  136.                 <label value="&newevent.recurrence.every.label;" control="monthly-months"/>
  137.                 <textbox id="monthly-months" value="1" size="3"
  138.                          oninput="validateIntegerRange(event, 1, 0x7FFF); updateAccept();"/>
  139.                 <label value="&newevent.recurrence.months.label;"/>
  140.               </hbox>
  141.               <radiogroup id="monthly-type">
  142.                 <radio id="monthly-nth-day" value="nth-day"/>
  143.                 <radio id="monthly-nth-week" value="nth-week"/>
  144.                 <radio id="monthly-last-week" hidden="true" value="last-week"/>
  145.                 <radio id="monthly-last-day" label="&newevent.recurrence.lastday.label;" hidden="true" value="last-day"/>
  146.               </radiogroup>
  147.             </vbox>
  148.  
  149.             <!-- Yearly -->
  150.             <vbox>
  151.               <hbox align="center">
  152.                 <label value="&newevent.recurrence.every.label;" control="yearly-years"/>
  153.                 <textbox id="yearly-years" value="1" size="3" 
  154.                          oninput="validateIntegerRange(event, 1, 0x7FFF); updateAccept();"/>
  155.                 <label value="&repeat.units.years;"/>
  156.                 <spacer flex="1"/>
  157.               </hbox>
  158.               <spacer flex="1"/>
  159.             </vbox>
  160.  
  161.           </deck>
  162.         </row>
  163.       </rows>
  164.     </grid>
  165.   </vbox>
  166.  
  167.   <spacer flex="1"/>
  168.  
  169.   <vbox>
  170.     <radiogroup id="recurrence-duration" oncommand="updateDuration()">
  171.       <grid flex="1">
  172.         <columns>
  173.           <column/>
  174.           <column flex="1"/>
  175.         </columns>
  176.  
  177.         <rows equalsize="always">
  178.           <row align="center">
  179.             <radio label="&newevent.repeat.forever.label;" value="forever" selected="true"/>
  180.             <spacer/>
  181.           </row>
  182.           <row>
  183.             <radio label="&newevent.repeat.for.label;" value="ntimes"/>
  184.             <hbox align="center">
  185.               <textbox id="repeat-ntimes-count" size="3" value="5" oninput="validateIntegerRange(event, 1, 0x7FFF); updateAccept();"/>
  186.               <spacer flex="0.5"/>
  187.               <label value="&repeat.units.occurrence.both;"/>
  188.               <spacer flex="1"/>
  189.             </hbox>
  190.           </row>
  191.           <row>
  192.             <radio label="&newevent.repeat.until.label;" value="until"/>
  193.             <hbox>
  194.               <datepicker id="repeat-until-date" value=""/>
  195.               <spacer flex="1"/>
  196.             </hbox>
  197.           </row>
  198.         </rows>
  199.       </grid>
  200.     </radiogroup>
  201.   </vbox>
  202.  
  203.   <spacer flex="1"/>
  204.  
  205.   <hbox>
  206.     <label id="repeat-numberoftimes-warning"
  207.            class="warning-text-class"
  208.            value="&newevent.recurnumberoftimes.warning;"
  209.            hidden="true"/>
  210.   </hbox>
  211.  
  212. </dialog>
  213.